package asteroids.expression;
import asteroids.model.programs.*;

import asteroids.*;

public class EntityExpression extends Expression {

	protected FlyingObject ref;

	public EntityExpression() {
		this.ref=null;

	}

	public EntityExpression(FlyingObject obj) {
		this.ref = obj;
	}

	public void setEntity(FlyingObject obj) {
		if (obj != null)
			this.ref = obj;
	}

	@Override
	public String toString(Program program) {
		
		return new String("FlyingObject");
	}
	
	public FlyingObject getValue(Program program)
	{
		return this.ref;
	}
	
	public void updateArguments(Program program) {}

}
